<?php  
session_start();
//manggil file

include("../../config/config.php");
$nip=$_SESSION['NIP'];
if(isset($_POST["Save"]))  

{
	$tahun = $_POST['TP'];
    $kpi = $_POST['KPI'];
	$cpi = $_POST['CPI'];
	$pl = $_POST['PL'];
	
	
		$sql = "INSERT INTO performance_history(TAHUN, KPI, CPI, PL, NIP)
		VALUES ('$tahun', '$kpi','$cpi', '$pl', '$nip')";
		$result = mysql_query($sql) or die(mysql_error());;
		mysql_close();
		//ngelempar file
		header('Location: /mpd/view/sdm/performance.php');
}
?>
